package com.hamster.crmpre.service;

import com.hamster.crmpre.pojo.ExecutivePerformance;

import java.util.Date;
import java.util.List;

public interface ExecutivePerformanceService {

    /**
     * 根据userId获取主管业绩列
     * @param userId 上级经理id
     * @return 主管业绩列表
     */
    List<ExecutivePerformance> list(String userId);

    /**
     * 根据userId获取一条主管业绩
     * @param userId 用户id
     * @return 一条主管业绩
     */
    ExecutivePerformance get(String userId);


    List<ExecutivePerformance> getByTime(String userId, Date time);
}
